<?php include "./layout/top.php" ?>
<link rel="stylesheet" type="text/css" href="./siteimages/Style.css" tppabs="/css/global.css">
<link href="./sitejs/ligerUI/skins/Aqua/css/ligerui-dialog.css" rel="stylesheet" type="text/css" />
<link href="./sitejs/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./sitejs/url.js"></script>
<script type="text/javascript" src="./sitejs/ligerUI/js/ligerui.min.js"></script>
    <!-- header end -->    <!-- main start -->
    <div class="main clearfix">
        <div class="aside">
            <?php include "./layout/playerdiv.php" ?>
			<div class="player-bottom"></div>
            <?php include "./layout/contactusdiv.php" ?>
			<div class="contact-bottom"></div>
        </div>	<script type="text/javascript">
    $(document).ready(function(){

    $('#regfrom').submit(function(){
    if(!$("#chkRule").attr("checked")){
    $.ligerDialog.warn('请同意本站规则与条款.');

    return false;
    }
    if(!$("#chkAge").attr("checked")){
    $.ligerDialog.warn('请确认您已满18岁.');

    return false;
    }
    var username = trim($('#username').val());
    if(username == ''){

    $.ligerDialog.warn('请填写用户名.');

    return false;
    }
    var ureg = /^[a-zA-Zx7f-xff][a-zA-Z0-9x7f-xff]*$/;
   // username="bbkk"+username;
    var reg = new RegExp(ureg);
    if(!reg.test(username)){
    $.ligerDialog.warn("用户格式不正确！");
    return false;
    }
    var alias=trim($('#alias').val());
    if(alias== ''){
    $.ligerDialog.warn('请填写姓名.');
    return false;
    }

    var password=trim($('#password').val());
    if(password== ''){
    	$.ligerDialog.warn('请填写密码.' + password);
    	return false;
    }
    //var preg=/^[0-9a-hkyA-HKY]{8,12}$/;
    var preg=/^[0-9A-Z]{8,12}$/;
    var pasreg=new RegExp(preg);
    if(!pasreg.test(password))
    {
    	$.ligerDialog.warn("密碼的長度在8-12個字符之間,密码只能为数字0~9,字母A~Z");
    	return false;
    }
    var drawpass=$('#ddlgpwd1').val()+$('#ddlgpwd2').val()+$('#ddlgpwd3').val()+$('#ddlgpwd4').val();
    if(drawpass=="0000")
    {
    $.ligerDialog.warn('請勿使用"0000"作為提款密碼！');
    return false;
    }
    $('#draw_password').val(drawpass);



    var contact=trim( $('#contact').val()) ;
    if(contact== ''){
//    $.ligerDialog.warn('请填写聯絡電話(手機).');
 //   return false;
    }

    var email=trim($('#email').val());
    mobileNumber = trim( $('#contact').val() );

    var regu =/(^[1][3][0-9]{9}$)|(^[1][5][0-9]{9}$)|(^[1][8][0-9]{9}$)|(^[0][1-9]{1}[0-9]{9}$)/;
    var reg = new RegExp(regu);
//    if(!reg.test(mobileNumber)){
//    $.ligerDialog.warn("手机号不合法，请重新输入手机号！");
 //   return false;
 //   }
    var random=Math.random();

    $.ligerDialog.waitting('正在保存中,请稍候...');
    $.post('postregdata.php?pi='+random,
    {act:'reg',
    acctype:1,
    alias:alias,
    username:username,
    password:password,
    password_confirm:password,
    contact:contact,
    email:email,
    online_contact:trim($('#online_contact').val()),
    draw_password:drawpass
    },function(msg){

    $.ligerDialog.closeWaitting();

    if(msg=='success')
    {
    msg="恭喜，帳號注冊成功！<br/>";
		 				msg+="帳號："+username+"<br/>";
		 				msg+="密碼："+password+"<br/>";
             msg+="请与客服联系激活帐号后方可使用！<br/>";
    $.ligerDialog.warn(msg,function(){
    window.top.location="zxcz.php";
    });

    }
    else{
    $.ligerDialog.warn(msg);
    return false;
    }
    });

    return false;
    });
    });
    function trim(str) {
    return str.replace(/(^\s*)|(\s*$)/g, "");
    }

    /* 验证手机号 */
    function checkMobile(mobileNum){
		var ReDetection = false;
		var mobileNumber = this.trim(mobileNum);
		ReDetection = !(mobileNumber == "" || mobileNumber == null || mobileNumber.length == 0);
		if(!ReDetection) {
		if(showMsg==null||showMsg=="") $.ligerDialog.warn("手机号为空，请输入您的手机号！");
		return false; // 基础验证
		}
		//ReDetection = (/^0(([1-9]d)|([3-9]d{2}))d{8}$/.test(m));if(ReDetection) return tr; // 电话/小灵通验证
		var regu =/(^[1][3][0-9]{9}$)|(^[1][5][0-9]{9}$)|(^[1][8][0-9]{9}$)|(^[0][1-9]{1}[0-9]{9}$)/;
		var reg = new RegExp(regu);
		ReDetection = reg.test(mobileNumber);  // 手机验证 13x 15x 18x 以此类推
		if(!ReDetection){
		//if(showMsg==null||showMsg=="") alert("手机号不合法，请重新输入手机号！");
		return false;
		}
		return true;
    }




    function renderOrder(n,m)
    {
    return Math.floor(Math.random()*(n-m)+m);
    //return Math.floor(Math.random()*10);
    }

function JudgeUserName() 
{ 
$.ajax({ 
type:"GET", 
url:"ajax.php", 
dataType:"html", 
data:"u="+$("#username").val(), 
beforeSend:function(XMLHttpRequest) 
{ 
$("#showResult").text("正在验证中......"); 
$("#showResult").css("color","red"); 
//Pause(this,100000); 
}, 
success:function(msg) 
{
if(msg=="yes"){
	$("#showResult").html("会员号可以注册！"); 
	$("#showResult").css("color","blue"); 
	//$("#yz")="yes";
	document.form2.yz.value="yes";
}else{
	$("#showResult").html("会员号不可用！"); 
	$("#showResult").css("color","red"); 
	//$("#yz")="no";
	document.form2.yz.value="no";
}
}, 
complete:function(XMLHttpRequest,textStatus) 
{ 
//隐藏正在查询图片 
}, 
error:function() 
{ 
//错误处理 
} 
}); 
} 

  </script>
	<div class="submain">
		<div class="divRightBox" style="background-color:#000">
			<div class="divRightTop">
																<table class="MMain MNoBorder" sizcache0599166552051885="6643" sizset="0" id="table1" style="border: 1px solid #800000" width="100%">
																		<tr>
																			<td class="MNotice" height="33" style="border:1px solid #800000; text-align:center; background-color:#FFFF00">
																			<b>
																			<font size="4" color="#FF0000">
																			<a target="_blank" href="http://sun577.com/account.php" style="text-decoration: none; outline-style: none; outline-color: invert; outline-width: medium">
																			<font color="#FF0000">
																			1.首存赠送80%，最高赠送8888元 
																			</font>
																			</a>
																			</font>
																			</b></td>
																			<td class="MNotice" height="33" style="border:1px solid #800000; text-align:center; background-color:#FFFF00">
																			<b>
																			<font size="4" color="#FF0000">
																			<a target="_blank" href="http://sun577.com/account.php" style="text-decoration: none; outline-style: none; outline-color: invert; outline-width: medium">
																			<font color="#FF0000">
																			2.洗码佣金最高达15%，无上限</font></a></font></b></td>
																		</tr>
																</table>
															【特别提醒】：<br>新开户会员注册成功后，请及时联系客服后台激活，方可成功开通使用！<br>客户电话：+639982746666 （或者点击右侧浮动窗口的在线客服人员）！
		 
			</div>
			<div class="divRightBody">
				<form action='add_reg_mem.php' method="post" id="regfrom" name="regfrom">
					<div class="divitemContent">
						<table width="100%" border="0" cellspacing="1" cellpadding="6">
							<tr>
								<td colspan="3">
								<div class="divTitle">用户注册<span id="showResult"></span></div></td>
								
							</tr>
							<tr>
								<td width="14%">用户名</td>
								<td>
								<input name="username" type="text" id="username" class="fmTxt" onblur="JudgeUserName();" />
								</td>
								<td rowspan="3" valign="top">
								<div class="divKeyBord" id="divKeyBord"></div>
								</td>
							</tr>
							<tr>
								<td>密码</td>
								<td>
								<input name="password" type="password" id="password" class="fmTxt" readonly="readonly" /></td>
							</tr>
		<!--<tr>
		  <td>重复密码</td>
		  <td><input name="txtRePsw" type="password" id="txtRePsw" class="fmTxt" /></td>
		  </tr>
		<tr>-->
							<tr>
								<td>货币</td>
								<td>
								<select name="ctl00$PageContent$Select1" id="ctl00_PageContent_Select1" class="fmTxt">
								<option value="RMB">RMB</option></select> </td>
							</tr>
							<tr>
								<td>提款密码</td>
								<td colspan="2">
								<select name="select" id="ddlgpwd1">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option></select>
								<select name="select" id="ddlgpwd2">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option></select>
								<select name="select" id="ddlgpwd3">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option></select>
								<select name="select" id="ddlgpwd4">
								<option value="0">0</option>
								<option value="1">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option></select>
								<input name="draw_password" type="hidden" id="draw_password" />
								<font color="#FF0000">*</font>密碼的長度4個數字 </td></td>
							</tr>
							<tr>
								<td colspan="3">
								<div class="divTitle">会员资料</div></td>
							</tr>
							<tr>
								<td>姓名</td>
								<td width="25%">
								<input name="alias" type="text" id="alias" class="fmTxt" /></td>
								<td width="61%"><font color="#FF0000">*</font>必须与您的银行账户名称相同，否则不能提款！  
								</td>
							</tr>
							<tr>
								<td>邮箱地址</td>
								<td colspan="2">
								<input name="email" type="text" id="email" class="fmTxt" /></td>
							</tr>
							<tr>
								<td>QQ</td>
								<td colspan="2">
								<input name="online_contact" type="text" id="online_contact" class="fmTxt" /></td>
							</tr>
							<tr style="display: none;">
								<td>手机</td>
								<td>
								<input name="contact" type="text" id="contact" class="fmTxt" /></td>
								<td><font color="#FF0000">*</font>请填写真实的手机号码,以便我们提供更好的服务! 
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td colspan="2">
								<input name="chkRule" type="checkbox" id="chkRule" value="checkbox" />
我已阅读并且同意太阳城的<a href="#">规则与条款</a> </td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td colspan="2">
								<input name="chkAge" type="checkbox" id="chkAge" value="checkbox" />
我声明我已经年满18岁 </td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td colspan="2">
								<input name="Submit" type="Submit" class="btnSubmit" value="确认提交"/></td>
							</tr>
						</table></div>
				</form>
<script language="javascript">

//eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([abd-hj-z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('j m(y){b.o("t").n+=y}j u(){b.o("t").n=""}j v(){d p=b.o("t");p.n=p.n.substr(0,p.n.w-1)}j z(){d e=["1","2","3","4","5","6","7","8","9","0"];d k=["Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M"];d f=b.o("divKeyBord");e.11(j(){x 12.13()>0.5?-1:1});k.11(j(){x 12.13()>0.5?-1:1});f.h="";f.h+="<q>";r(d i=0;i<e.w;i++){f.h+="<a g=m(\'"+e[i]+"\');>"+e[i]+"</a>"}r(d i=0;i<10;i++){f.h+="<a g=m(\'"+k[i]+"\');>"+k[i]+"</a>"}f.h+="<a g=\'v();\'><<</a><a 14=\'15:16;\' g=\'u();\'>17</a>";f.h+="</q>";f.h+="<s 18=\'c\'></s>";x;b.l("<q>");r(d i=0;i<e.w;i++){b.l("<a g=m(\'"+e[i]+"\');>"+e[i]+"</a>")}r(d i=0;i<10;i++){b.l("<a g=m(\'"+k[i]+"\');>"+k[i]+"</a>")}b.l("<a g=\'v();\'><<</a><a 14=\'15:16;\' g=\'u();\'>17</a>");b.l("</q>");b.l("<s 18=\'c\'></s>")}z();',[],71,'||||||||||li|document||var|NumKey|BordBox|onclick|innerHTML||function|CharKey|write|KeyPress|value|getElementById|pwdObj|ul|for|div|password|ClearPsw|doBackSpace|length|return|KeyVal|KeyBord||||||||||||||||||||||||||||sort|Math|random|style|width|53px|Clear|class'.split('|'),0,{}));
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([abd-hj-z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('j m(y){b.o("t").n+=y}j u(){b.o("t").n=""}j v(){d p=b.o("t");p.n=p.n.substr(0,p.n.w-1)}j z(){d e=["1","2","3","4","5","6","7","8","9","0"];d k=["A","G","Y","C","F","H","D","K","E","B"];d f=b.o("divKeyBord");e.11(j(){x 12.13()>0.5?-1:1});k.11(j(){x 12.13()>0.5?-1:1});f.h="";f.h+="<q>";r(d i=0;i<e.w;i++){f.h+="<a g=m(\'"+e[i]+"\');>"+e[i]+"</a>"}r(d i=0;i<10;i++){f.h+="<a g=m(\'"+k[i]+"\');>"+k[i]+"</a>"}f.h+="<a g=\'v();\'><<</a><a 14=\'15:16;\' g=\'u();\'>17</a>";f.h+="</q>";f.h+="<s 18=\'c\'></s>";x;b.l("<q>");r(d i=0;i<e.w;i++){b.l("<a g=m(\'"+e[i]+"\');>"+e[i]+"</a>")}r(d i=0;i<10;i++){b.l("<a g=m(\'"+k[i]+"\');>"+k[i]+"</a>")}b.l("<a g=\'v();\'><<</a><a 14=\'15:16;\' g=\'u();\'>17</a>");b.l("</q>");b.l("<s 18=\'c\'></s>")}z();',[],71,'||||||||||li|document||var|NumKey|BordBox|onclick|innerHTML||function|CharKey|write|KeyPress|value|getElementById|pwdObj|ul|for|div|password|ClearPsw|doBackSpace|length|return|KeyVal|KeyBord||||||||||||||||||||||||||||sort|Math|random|style|width|53px|Clear|class'.split('|'),0,{}));
</script>


			</div>
			<div class="divRightFoot"></div></div>
		<div class="c"></div></div>
</DIV>
</div>
<?php include "./layout/bb.php" ?>
                            <!-- footer start -->
<?php include "./layout/footer.php" ?>